<template>
  <div id="rank">
    <div id="rank-head">
      <img src="@/assets/img/rank-img/rank-fire.png">
      <span>本周热门榜单</span>
      <span class="rh-r">全部榜单<span class="iconfont">&#xe678;</span></span>
    </div>
    <ul>
      <li v-for="item in rankUrl" :key="item.id">
        <img :src="item.img">
        <p>{{item.adr}}</p>
        <p><span>{{item.price}}</span>起</p>
      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    name: "",
    props: ["rankUrl"],
    data() {
      return {

      }
    }

  }
</script>

<style>
  #rank {
    padding: 0.75rem;
  }

  #rank #rank-head {
    padding: 0.62rem 0;
  }

  #rank #rank-head img {
    width: 0.93rem;
    height: 0.93rem;
  }

  #rank #rank-head .rh-r {
    font-size: 0.24rem;
    float: right;
  }

  #rank ul {
    height: 8.75rem;
    overflow-x: scroll;
    white-space: nowrap;
  }

  #rank ul li {
    width: 6.25rem;
    height: 6.25rem;
    display: inline-block;
    margin-right: 6px;
  }

  #rank ul li:last-child {
    margin-right: 0.75rem;
  }

  #rank ul li img {
    width: 100%;
    height: 100%;

  }

  #rank ul li p {
    width: 6.25rem;
    font-size: 0.12rem;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  #rank ul li p span {
    color: #ff8300;
  }
</style>
